package com.git.hui.yinshua.api.model.order;

import lombok.Getter;

/**
 * 订单状态
 *
 * @author YiHui
 * @date 2024/6/20
 */
@Getter
public enum PayStatusEnum {
    TO_PAY(0, "未支付"),
    // 用于前端告诉后端已经支付成功了，但是后台还没有收到微信回调的场景
    PAYING(5, "支付中"),
    SUCCEED(10, "支付成功"),
    REFUNDING(20, "退款中"),
    REFUNDED(30, "已退款"),
    FAILED(100, "支付失败")
    ;

    private Integer status;
    private String desc;

    PayStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }
}
